﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Comment.aspx.cs" Inherits="Comment" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>留言页面</title>
    <style type="text/css">
        #form1
        {
            height: 743px;
            width: 1388px;
            margin-top: 15px;
        }
        .style1
        {
            width: 71%;
        }
        .style2
        {
            top: 2px;
            left: 2px;
            height: 36px;
            text-align: center;
        }
        .style4
        {
            text-align: center;
        }
        .style5
        {
            height: 338px;
        }
        .style6
        {
            height: 198px;
            width: 102px;
        }
        .style7
        {
            height: 198px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table align="center" class="style1" 
        style="position: absolute; top: 83px; left: 38px; height: 155px;">
        <tr>
            <td class="style2" colspan="2">
                欢迎留言</td>
        </tr>
        <tr>
            <td align="justify" colspan="2">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                字体大小：&nbsp;
                <asp:DropDownList ID="DropFont" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="DropFont_SelectedIndexChanged">
                    <asp:ListItem Value="8pt">8pt</asp:ListItem>
                    <asp:ListItem Value="10pt">10pt</asp:ListItem>
                    <asp:ListItem Value="12pt">12pt</asp:ListItem>
                    <asp:ListItem Value="14pt">14pt</asp:ListItem>
                    <asp:ListItem Value="18pt">18pt</asp:ListItem>
                    <asp:ListItem Value="24pt">24pt</asp:ListItem>
                    <asp:ListItem Value="36pt">36pt</asp:ListItem>
                </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="BnIsert" runat="server" Text="提交留言" Width="69px" 
                    onclick="BnIsert_Click" />
            </td>
        </tr>
        <tr>
            <td align="center" class="style6">
                内容：</td>
            <td align="center" class="style7">
                <asp:TextBox ID="TextBox" runat="server" Height="107px" TextMode="MultiLine" 
                    Width="701px" Font-Names="宋体" MaxLength="500" Rows="3" Font-Size="10pt"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style4" colspan="2">
                现有的留言</td>
        </tr>
        <tr>
            <td class="style5" colspan="2" align="center" valign="middle">
                <asp:GridView ID="GridView" runat="server" AllowPaging="True" 
                    AutoGenerateColumns="False" Width="726px" AllowSorting="True" 
                    Height="274px" style="margin-top: 0px" 
                    onpageindexchanging="GridView_PageIndexChanging">
                    <Columns>
                        <asp:BoundField DataField="ID" HeaderText="ID" Visible="False" />
                        <asp:BoundField DataField="Comment_Data" HeaderText="留言日期" />
                        <asp:BoundField DataField="Comment_content" HeaderText="留言内容" />
                        <asp:BoundField DataField="UserId" HeaderText="UserId" />
                    </Columns>
                </asp:GridView>
                </td>
        </tr>
    </table>
</form>
</body>
</html>